from django.http import HttpResponse
from django.shortcuts import render

# Create your views here.
from django.views import View


class HelloCBV(View):

    # 搭配RESTful规范
    def get(self, request):
        return HttpResponse("hahaha")

    def post(self, request):
        return HttpResponse("POST!")

    def put(self, request):
        return HttpResponse("PUT!")
